#ifndef FILE_DESCRIPTION_H_
#define FILE_DESCRIPTION_H_

#include "./../description_module/description_module.h"

#include <string>

class FileDescription : public Description
{
public:
    enum FileMode
    {
        INIT   = 0x00,
        ONLYRD = 0x01,
        RDWR   = 0x02,
        WRAPP  = 0x04,
    };

public:
    explicit FileDescription(const std::string & file_name, int mode);
    ~FileDescription();
    int  DescriptionData() override;
    int  CreateDescription() override;
    void CloseDescription() override;

private:
    std::string m_file_name;
    int         m_file_mode;
    int         m_file_description;
};

#endif
